package stars;

import java.util.ArrayList;

import modifiers.Feature;
import modifiers.IModifier;

import com.jme3.math.Vector3f;
import com.jme3.scene.Spatial;

import controls.RotationControl;

import eventManager.EventManager;

public class StarControllerBuilder {
	
	public StarController createController(			 
			StarModel model, 
			ArrayList<Feature> features,
			ArrayList<Spatial> views) {
		
		StarController controller = new StarController(model, views);
		
		//add GameControls
		RotationControl rotControl = new RotationControl();
		rotControl.setRotationAxis(new Vector3f(0,0,1), 0.25f);
		controller.addGameControl(rotControl, "Detail");
		
		return controller;
	}
	
	
//	public StarController createController(EventManager eventManager, StarModel model, Spatial view) {
//		
//		//create controller
//		StarController controller = new StarController(eventManager, model, view);
//		
//		//add GameControls
//		RotationControl rotControl = new RotationControl();
//		rotControl.setRotationAxis(new Vector3f(0,0,1), 0.25f);
//		controller.addGameControl(rotControl);
//		
//		
//		return controller;
//	}

}
